# Contributor: Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi>
# Maintainer:
pkgname=py3-pdfkit
_pkgname=pdfkit
pkgver=0.6.1
pkgrel=1
pkgdesc="Python wrapper to convert HTML to PDF using the WebKit rendering engine"
options="!check" # No testsuite in pypi tarball, no github releases
url="https://github.com/JazzCore/python-pdfkit"
arch="noarch !armhf !mips !mips64" # blocked by wkhtmltopdf
license="MIT"
depends="wkhtmltopdf python3"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/p/pdfkit/pdfkit-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-pdfkit" # Backwards compatibility
provides="py-pdfkit=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --root "$pkgdir"
}

sha512sums="b3ac1016d1c01a2a196f567b9b672caca10f564cc6a62122691d34c3cbbf143f6a846bfba26c3474e9c0296977f0d30c0b5af13b3321ab207b787df3cba12e5d  pdfkit-0.6.1.tar.gz"
